/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-09-21
 * Time: 21:10
 */

public class Test1 {
    public static void main(String[] args) {
        //自动装箱
        int i = 10;
        Integer ii = i;
        Integer ii1 =(Integer)i;
        //自动拆箱
        Integer jj = 10;
        int j = jj;
        int j1 = (int)jj;
    }

    public static void main1(String[] args) {
        //装箱
        int i = 11;
        Integer ii = Integer.valueOf(i);
        Integer ii1 = new Integer(i);
        //拆箱
        int j = ii.intValue();

    }
}
